package Entitys;


import java.io.Serializable;
import java.util.List;
import javax.persistence.*;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrador
 */
@Entity
public class Actor extends Person{
   @OneToMany(mappedBy="actor")
   private List<MovieAndActor> moviesActed;   
   public Actor(){}

    /**
     * @return the moviesActed
     */
    public List<MovieAndActor> getMoviesActed() {
        return moviesActed;
    }

    /**
     * @param moviesActed the moviesActed to set
     */
    public void setMoviesActed(List<MovieAndActor> moviesActed) {
        this.setMoviesActed(moviesActed);
    }

   
}
